You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > ThresholdGT Method > TOpenCLValue.ThresholdGT Method ([In] TOpenCLValue, double, double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.ThresholdGT Method ([In] TOpenCLValue, double, double)

Threshold greater than operation.

Syntax
C#
Visual Basic
public TOpenCLValue ThresholdGT([In] TOpenCLValue Vec, double GTLevel, double GTValue);

Perform operation on Vec value. The GTValue parameter is an upper bound for threshold operation. Vec value bigger than LTLevel will be replaced with GTValue. For a complex number the comparison will be applied with the norm of the complex value.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a, b; clMtxVec.CreateIt(out a, out b); try { b.Copy(2); a.ThresholdGT(b, 1.3,1.5); // a = [1.5] } finally { clMtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!